<template>
  <div class="outer">
    <Tab title="美食分类">
      <template #content>
        <img
          width="200"
          src="https://img2.baidu.com/it/u=2082735800,426564252&fm=253&fmt=auto&app=138&f=GIF?w=400&h=300"
          alt=""
        />
      </template>
      <template #footer>
        <span>火锅</span>
      </template>
    </Tab>
    <Tab title="游戏分类">
      <template #content>
        <div>
          <ul>
            <li>LoL</li>
            <li>CF</li>
            <li>DNF</li>
          </ul>
        </div>
      </template>
      <template #footer>
        <a href="###">点我玩游戏</a>
      </template>
    </Tab>
    <Tab title="电影分类">
      <template #content>
        <div>
          <video src="" width="200" autoplay muted></video>
        </div>
      </template>
      <template #footer>
        <span>好看</span>
      </template>
    </Tab>
  </div>
</template>

<script>
import Tab from "./components/Tab";
export default {
  name: "App",
  components: {
    Tab,
  },
  data() {
    return {};
  },
};
</script>

<style scoped>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>